import request from '@/utils/request'

export const loginAPI = (data) => {
  return request({
    url: '/api/user-service/user/login',
    method: 'POST',
    data
  })
}

// 简化版
// export const loginAPI = (data) =>  request({
//     url: '/sys/login',
//     method: 'POST',
//     data
// })

export const VerificationAPI = (clientToken) => {
  return request({
    url: `/api/user-service/user/imageCode/${clientToken}`,
    responseType: 'blob'
  })
}

